﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SmartLib.Cfg
{
    public class DBFactoryElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get
            {
                return (string)this["name"];
            }
            set
            {
                this["name"] = value;
            }
        }

        [ConfigurationProperty("connectionType", IsRequired = true)]
        public string ConnectionType
        {
            get
            {
                return (string)this["connectionType"];
            }
            set
            {
                this["connectionType"] = value;
            }
        }

        [ConfigurationProperty("commandType", IsRequired = true)]
        public string CommandType
        {
            get
            {
                return (string)this["commandType"];
            }
            set
            {
                this["commandType"] = value;
            }
        }

        [ConfigurationProperty("parameterToken", IsRequired = true)]
        public string ParameterToken
        {
            get
            {
                return (string)this["parameterToken"];
            }
            set
            {
                this["parameterToken"] = value;
            }
        }
    }
}
